package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.dtos.NewsAuthDto;
import com.heima.model.media.dtos.WmNewsDto;
import com.heima.model.media.dtos.WmNewsPageReqDto;
import com.heima.model.media.pojos.WmNews;
import com.heima.model.media.vo.WmNewsVo;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult findList(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult saveNews(WmNewsDto dto);

    ResponseResult findWmNewsById(Integer id);

    ResponseResult delNews(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);


    //定时任务调用  查询需要发布的文章id
    List<Integer> findRelease();


    //admin端调用查询人工审核文章列表
    public ResponseResult findListAndPage(NewsAuthDto dto);

    //admin端调用查询人工审核文章详情
    WmNewsVo findWmNewsVo(Integer id);



}
